<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .a {
            width: 300px;
            height: 200px;
            background-color: #f00;
            margin-left: 30px;
            float: left;

            color: aqua;
            text-align: center;
            line-height: 200px;
        }

        .a p {
            /* background-color: #ddd; */
        }
    </style>
</head>

<body>

    <!-- 
        继承：写在父元素上的属性对子元素同样生效  

        对于大标签而言，宽度会继承 --- 浮动除外     '伪继承'
        
        文本属性具有继承性
     -->

    <div class="a">
        <p>11111</p>
    </div>

</body>

</html>